package com.xs.tool.common.sync;

/**
 * 被调程序
 */
public class CallbackResponse {
    public void handler(CallBackInterface callback, String request) {
        System.out.println(callback.getClass()+"问的问题是:"+ request);
        try {
            System.out.println("线程睡眠 ------------------start");
            Thread.sleep(10);
            System.out.println("线程睡眠 ------------------end");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        String result="\n答案是2";
        callback.solve(result);
    }
}
